<div class="headbar">
	<div class="position"><span>系统</span><span>></span><span>权限管理</span><span>></span><span>管理员列表</span></div>
	<div class="operating">
		<a href="javascript:void(0)" onclick="event_link('{url:/system/admin_edit}')"><button class="operating_btn" type="button"><span class="addition">添加管理员</span></button></a>
		<a href="javascript:void(0)" onclick="selectAll('id[]');"><button class="operating_btn" type="button"><span class="sel_all">全选</span></button></a>
		<a href="javascript:void(0)" onclick="delModel({msg:'是否把信息放到回收站内？'});"><button class="operating_btn" type="button"><span class="delete">批量删除</span></button></a>
		<a href="javascript:void(0)" onclick="event_link('{url:/system/admin_recycle}')"><button class="operating_btn" type="button"><span class="recycle">回收站</span></button></a>
	</div>
	<div class="field">
		<table class="list_table">
			<col width="40px" />
			<col width="150px" />
			<col width="100px" />
			<col width="200px" />
			<col />
			<thead>
				<tr>
					<th>选择</th>
					<th>用户名</th>
					<th>角色</th>
					<th>Email</th>
					<th>上次登录IP</th>
					<th>上次登录时间</th>
					<th>操作</th>
				</tr>
			</thead>
		</table>
	</div>
</div>

<div class="content">
	<form name='admin_list' method='post' action='{url:/system/admin_update/recycle/del}'>
		<table class="list_table">
			<col width="40px" />
			<col width="150px" />
			<col width="100px" />
			<col width="200px" />
			<col />
			<tbody>
				{set:$page= (isset($_GET['page'])&&(intval($_GET['page'])>0))?intval($_GET['page']):1;}
				{query: name=admin as a join = left join admin_role as b on a.role_id eq b.id fields=a.*,b.name as role_name where=a.is_del eq 0 page=$page pagesize=20}
				<tr>
					<td><input type='checkbox' name='id[]' value='{$item['id']}' /></td>
					<td>{$item['admin_name']}</td>
					<td>{echo:$item['role_name'] ? $item['role_name'] : '超级管理员'}</td>
					<td>{$item['email']}</td>
					<td>{$item['last_ip']}</td>
					<td>{$item['last_time']}</td>
					<td>
						<a href='{url:/system/admin_edit/id/$item[id]}'><img class="operator" src="{skin:images/admin/icon_edit.gif}" alt="编辑" title="编辑" /></a>
						<a href='javascript:void(0)' onclick="delModel({link:'{url:/system/admin_update/recycle/del/id/$item[id]}',msg:'是否把信息放到回收站内？'});"><img class="operator" src="{skin:images/admin/icon_del.gif}" alt="删除" title="删除" /></a>
					</td>
				</tr>
				{/query}
			</tbody>
		</table>
	</form>
</div>
